import request from '../configs/axios';

class HomeServe {
    constructor(){
        this.prefix = '/app_v3/';
    }

    getBaseInfo(pickupCityId) {
        return new Promise((resolve, reject) => {
            request.post(this.prefix + 'api/baseInfo.php', { pickupCityId }).then(res => {
                if (res.status === 200) {
                    resolve(res.data);
                }
              }).catch(err => reject(err));
        });
    }
}

export default new HomeServe();